"""
@Project: pythonPro1
@Name: p19testDemo.py
@Author: linxin_liu
@Date: 2022/9/25 15:55
"""


def average(values):
    """Computes the arithmetic mean of a list of numbers.

    >>> print(average([20, 30, 70]))
    40.0
    """
    return sum(values) / len(values)


import doctest

doctest.testmod()  # 自动验证嵌入测试
